//
//  UIWindow+EDSCustomAlertView.m
//  DrivieSchoolStudents
//
//  Created by TangBin on 2019/5/16.
//  Copyright © 2019 班文政. All rights reserved.
//

#import "UIWindow+EDSCustomAlertView.h"
#import <objc/runtime.h>

@implementation UIWindow (EDSCustomAlertView)

- (void)setCustAlertView:(EDSCustomAlertView *)custAlertView
{
    objc_setAssociatedObject(self, @selector(custAlertView), custAlertView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (EDSCustomAlertView *)custAlertView
{
    return objc_getAssociatedObject(self, _cmd);
}

- (void)setCustAlertMaskView:(UIView *)custAlertMaskView
{
    objc_setAssociatedObject(self, @selector(custAlertMaskView), custAlertMaskView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (UIView *)custAlertMaskView
{
    return objc_getAssociatedObject(self, _cmd);
}

@end

























